﻿using System.Collections.Generic;

namespace HuiZe.education.Model
{
    public class ClassModel : ModelBase
    {
        public int id
        {
            get
            {
                return class_id;
            }
            set
            {
                class_id = value;
            }
        }

        private string _parentName;
        public string parentName
        {
            get { return _parentName; }
            set
            {
                _parentName = value;
                DisPlayName = $"{value}{name}";
            }
        }

        public string name
        {
            get
            {
                return grade_text;
            }

            set
            {
                grade_text = value;
            }
        }

        
        public string level { get; set; }

        public int pid { get; set; }

        public string status { get; set; }

        public int weigh { get; set; }

        public int createtime { get; set; }

        public List<ClassModel> SubClass { get; set; }
        public string DisPlayName { get; set; }

        public int class_id { get; set; }

        public string grade_text { get; set; }
    }

    public class ReqClassInfoModel
    {
        public string token { get; set; }
        public int id { get; set; }
    }
    public class ReqResBkDetailModel
    {
        public string token { get; set; }
        public string bid { get; set; }
    }
    public class ReqEditPersonModel
    {
        public string token { get; set; }
        public string avatar { get; set; }
        public string nickname { get; set; }
        public int gender { get; set; }
        public string subject_id { get; set; }
        public string grades_ids { get; set; }
        public string class_ids { get; set; }
    }
    public class ResEditPersonModel
    {
        public int id { get; set; }
        public int group_id { get; set; }
        public string username { get; set; }
        public string nickname { get; set; }
        public string password { get; set; }
        public string salt { get; set; }

        public string email { get; set; }

        public string mobile { get; set; }
        public string avatar { get; set; }
        public int level { get; set; }
        public int gender { get; set; }
        public string birthday { get; set; }
        public string bio { get; set; }
        public string money { get; set; }
        public int score { get; set; }
        public int successions { get; set; }
        public int maxsuccessions { get; set; }
        public long prevtime { get; set; }

        public long logintime { get; set; }
        public string loginip { get; set; }
        public int loginfailure { get; set; }
        public string joinip { get; set; }
        public int jointime { get; set; }
        public int createtime { get; set; }
        public int updatetime { get; set; }
        public string token { get; set; }
        public ResEditverificationModel verification { get; set; }
        public string status { get; set; }
        public string file_rom { get; set; }
        public string use_rom { get; set; }
        public string subject { get; set; }
        public int grades_id { get; set; }
        public int school_id { get; set; }
        public string url { get; set; }
        
    }
    public class ResEditverificationModel
    {
        public int email { get; set; }
        public int mobile { get; set; }

    }

    public class ResResBkDetailHeadModel
    {
        //public int id { get; set; }
        //public string title { get; set; }
        //public string class_ids { get; set; }
        //public string class_name_text { get; set; }
        //public string user_id { get; set; }
        //public string attachment_ids { get; set; }
        //public int weigh { get; set; }
        //public int number { get; set; }
        //public int class_sort { get; set; }
        //public string cover_image { get; set; }
        //public string createtime_text { get; set; }
        public ResResBkDetailInfoModel bclass { get; set; }
        public List<ResResBkDetailModel> resource_list { get; set; }
    }

    public class ResResBkDetailInfoModel
    {
        public int id { get; set; }
        public string title { get; set; }
        public string class_ids { get; set; }
        public string class_name_text { get; set; }
        public string user_id { get; set; }
        public string attachment_ids { get; set; }
        public int weigh { get; set; }
        public int number { get; set; }
        public int class_sort { get; set; }
        public string cover_image { get; set; }
        public string zippath { get; set; }
        public string y_id { get; set; }
        public string pathjson { get; set; }
        public string cat_name { get; set; }
        public string dir_name { get; set; }
        public string kind_id { get; set; }
        public string school_id { get; set; }
        public string createtime_text { get; set; }
    }

    public class ResResBkDetailModel
    {
        public int id { get; set; }
        public int bid { get; set; }
        public int user_id { get; set; }
        public string bname { get; set; }
        public string file { get; set; }
        public string extname { get; set; }
        public string image_cover { get; set; }
        public int attachment_id { get; set; }
        public string att_type { get; set; }
        public int resources_id { get; set; }
        public string type { get; set; }
        public int weigh { get; set; }
        public string lyric { get; set; }
        public string rotation_img { get; set; }
        public string rotation_img_text { get; set; }
        public string lyric_text { get; set; }

    }
}
